﻿using System;
using Actya.Core.Content;

namespace Actya.Plugins.Hello.Model
{
	public class HelloModel : ContentBase
	{
		public string Text { get; set; }

		public override string ContentAsText
		{
			get { return Text; }
		}

		public override IContent SanitizeContent(Func<string, string> sanitize)
		{
			this.Text = sanitize(this.Text);
			return this;
		}
	}
}